#!/usr/bin/env bash

app=${bakApp:0:-13}
echo $'\n'"=======  executing rollback.sh[$app] =============== "$'\n'

#取最新的备份
old=$bakDir/$bakApp
module=$workDir/$app
rm -rf $module/*
cp -r $old/* $module && echo "########  $old recorved to $module  #################  "
